package com.hnkywl.sts.action.tjbb;

import com.hnkywl.sts.entity.htgl.Cght;
import com.hnkywl.sts.entity.htgl.Ht;
import com.hnkywl.sts.entity.zjgl.Bzjyj;
import com.hnkywl.sts.service.htgl.CghtService;
import com.hnkywl.sts.service.tjbb.BzjyjService;
import com.hnkywl.sts.service.zjgl.BzjService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by HL on 2015/9/20.
 */
@Namespace("/tjbb/bzjyj")
public class BzjyjAction extends SimpleActionSupport {
    private BzjyjService bzjyjService;
    private int page;
    private int rows;
    private String htbm;
    private Long id;
    private Bzjyj bzjyj;

    @Action("bzjyjcList")
    public void bzjyjcList() {
        this.renderJson(this.bzjyjService.findAllBzjyj(htbm, page, rows));
    }


    @Action("bzjyj_detail")
    public String bzjyj_detail() {
        bzjyj = this.bzjyjService.findBzjyjById(id);
        return SUCCESS;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Bzjyj getBzjyj() {
        return bzjyj;
    }

    public void setBzjyj(Bzjyj bzjyj) {
        this.bzjyj = bzjyj;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getHtbm() {
        return htbm;
    }

    public void setHtbm(String htbm) {
        this.htbm = htbm;
    }

    @Autowired
    public void setBzjyjService(BzjyjService bzjyjService) {
        this.bzjyjService = bzjyjService;
    }
}
